package com.pfsoft.expression.InnerClass;/**
 * 测试用外部类
 *
 * @author PF
 * Created by dell on 2017/8/21.
 */

/**
 * com.pfsoft.expression.InnerClass
 * 测试用外部类
 * @author PF
 * @create 2017-08-21 15:59
 **/
public class TestOutClass {
    private  String name;
    public String nickName;
    private  static  int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static int getAge() {
        return age;
    }

    public static void setAge(int age) {
        TestOutClass.age = age;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public class TestInnerClass{
        private String innerName;
        public String innerNickName;

        public String getInnerName() {
            return innerName;
        }

        public void setInnerName(String innerName) {
            this.innerName = innerName;
        }

        public String getInnerNickName() {
            return innerNickName;
        }

        public void setInnerNickName(String innerNickName) {
            this.innerNickName = innerNickName;
        }

        public  void innerMethod(){
            System.out.println("这是内部类的方法");
        }
    }

    public void  OuterMethod()
    {
        TestInnerClass innerClass=new TestInnerClass();
        System.out.println("这是外部类的方法");
    }
}
